# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: andy123 < ajs [at] online [dot] de >

pkgname=mari0
pkgver=1.6
pkgrel=1
pkgdesc="The Mario game with Portal gun mechanics"
arch=('any')
url="http://stabyourself.net/mari0/"
license=('CCPL')
depends=('love>=0.8')
_gamepkg="${pkgname}-linux.zip"
source=(${pkgname}.sh
        ${pkgname}.desktop
        http://stabyourself.net/dl.php?file=$pkgname-1006/$pkgname-linux.zip)
sha1sums=('165e2aa9234f3857cc971738ebf6c05ec5bed207'
          'af4875330c5961476db4696e2453f7c0c2bea9ea'
          'c5db253e22a54b97d51923b462877c3a3b8dfbe0')

package() {
	# Install Data
	install -D -m755 "${srcdir}/${pkgname}_${pkgver}.love" "${pkgdir}/usr/share/${pkgname}/${pkgname}.love"
	install -D -m644 "${srcdir}/README" "$pkgdir/usr/share/${pkgname}/README"

	# Install Launcher
	install -D -m755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"

	# Install Desktop
	install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
